# coding: UTF-8
# @Date    ：2024/10/11 15:55 
# @File    : run.py
# :Author:  fum
import logging
import os

from api.fm.core.Ioc.base import get_container

if __name__ == '__main__':
    import uvicorn

    config = get_container().config().get_config()
    logger = logging.getLogger(__name__)
    logger.info("启动成功")
    logger.info("文档:  'http://localhost:8000/docs'")
    uvicorn.run("app:app", host=config.get("HOST"), port=config.get("PORT"), workers=2)
